﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace _2DGame
{
    static class LevelController
    {

        static int _Distance;
        static float _Speed = 2;//The Speed the backgrund move

        static LevelController() 
        {
            _Distance += Convert.ToInt32(SpeedRunner());

        }
        /// <summary>
        /// Return the Speed backgrund shall move
        /// </summary>
        /// <returns></returns>
        public static float SpeedRunner()
        {
            return _Speed;
        }
        public static void IncreaseSpeed(float inSpeed)
        {
            _Speed += inSpeed*_Speed;
        }


    }
}
